package com.tca.spring.framework.learning.tx;

import com.tca.spring.framework.learning.tx.config.TxConfig;
import com.tca.spring.framework.learning.tx.dao.InfoMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhouan
 * @Date 2021/7/21
 */
public class TxStarter {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(TxConfig.class);
        InfoMapper infoMapper = applicationContext.getBean(InfoMapper.class);
        infoMapper.insert();
    }

}
